def ascii_encrypt(text):
    """将文本转换为 ASCII 码字符串"""
    encrypted_text = ' '.join(str(ord(char)) for char in text)
    return encrypted_text

def ascii_decrypt(text):
    """将 ASCII 码字符串转换为文本"""
    try:
        ascii_codes = text.split()
        decrypted_text = ''.join(chr(int(code)) for code in ascii_codes)
        return decrypted_text
    except ValueError:
        return "无效的 ASCII 码输入"